package org.ricks.log;

/**
 * @author chenwei
 * @Title:
 * @Package
 * @Description:
 * @date 2021/1/2918:16
 */
public final class StartupPolicy implements Policy {

    /** */
    public StartupPolicy() {
        this(null);
    }

    /**
     * @param argument
     *            Should be always {@code null} as startup policy does not support arguments
     */
    public StartupPolicy(final String argument) {
        if (argument != null) {
            InternalLogger.log(Level.WARN, "Startup policy does not support arguments");
        }
    }

    @Override
    public boolean continueExistingFile(final String path) {
        return false;
    }

    @Override
    public boolean continueCurrentFile(final byte[] entry) {
        return true;
    }

    @Override
    public void reset() {
    }

}
